Skip to main content

Stock View

πŸ‘€βž‘οΈπŸŒ Stock View Request (Client β†’ WCF REST Service)​

This message is sent by the Client to the WCF REST Service to get the uploaded holdings (DP, Pool & SAR), Collateral, and today’s buy quantity under Delivery product.
The Service validates the request based on the parameters sent and returns the response in string format.
In case of failure, it sends a failure response.

πŸ“˜ Tags and Fields​

TagField NameReq’dData Type (Max)Comment
63Message VersionYString (10)Fixed Value – FT1.0
64Message TypeYIntegerFixed Value – 328
67Reserved PG Dealer IdOString (10)Reserved PG Dealer Id
4Session IdYString (100)Must match session id received on logon response
201User IdYString (10)Web Retail User Id
202Group IdYString (10)Group Id of the user
999Check Sum ValueYIntegerChecksum generated based on entire string. Always appended at end

Examples​

βœ… String to be passed for generating checksum:​

63=FT1.0|64=328|67=RESERVEDPG|4=RESERVEDPG_412201710722|201=HARDIK61|202=HO

βœ… String to be passed along with checksum:​

63=FT1.0|64=328|67=RESERVEDPG|4=RESERVEDPG_412201710722|201=HARDIK61|202=HO|999=145

πŸ“‘πŸ“¨ Stock View Response (WCF REST Service β†’ Client)​

πŸ“˜ Tags and Fields​

TagField NameReq’dComment
63Message VersionYFixed Value – FT1.0
64Message TypeYFixed Value – 329
18Response CodeYResponse Code:
0 – Failure
1 – Success
19Response MessageOContains key StockView with parameters as an array of JSON objects

🧩 StockView JSON Parameters​

Column NameDescription
sDPAvailableAvailable DP Quantity
sPOOLAvailablePool Available
sRecvAvailableAvailable Receivable Quantity
sCurRecvAvailableCurrent Receivable Available
TOTALQUANTITYTotal Available Quantity
sDPBlockBlocked DP Quantity
sPOOLBlockPool Blocked
sRecvBlockBlocked Receivable Quantity
sCurRecvBlockCurrent Receivable Blocked
TOTALBLOCKQUANTITYTotal Blocked Quantity
sDPFreeFree DP Quantity
sPOOLFreePool Free
sRecvFreeFree Receivable Quantity
sCurvRecvFreeCurrent Receivable Free
TOTALFREEQUANTITYTotal Free Quantity
nBuyAvgPriceBuy Average Price
ISINISIN
nMarketSegmentIdMarket Segment Id
nTokenToken
sSeriesSeries
sSymbolSymbol
POOLPriorityPool Priority
OtherSegmentTokensOther Segment Tokens (e.g., 1:1660,8:500875)
sShortSellQtyShort Sell Quantity
sTotalCollateralQtyTotal Collateral Quantity
sCreditForSaleCredit for Sale
sTotalSecurityCollateralTotal Security Collateral
nPreferredMTMTokenPreferred Token for MTM
nPreferredMTMMarketSegmentIdPreferred Segment for MTM
nNSETradedSellQtyNSE Sell Qty
nBSETradedSellQtyBSE Sell Qty

Example​

βœ… Success Case​

63=FT1.0|64=329|18=1|19={
"StockView":[
{
"sDPAvailable":0,"sPOOLAvailable":0,"sRecvAvailable":5,"sCurRecvAvailable":0,"TOTALQUANTITY":5,
"sDPBlock":0,"sPOOLBlock":0,"sRecvBlock":3,"sCurRecvBlock":0,"TOTALBLOCKQUANTITY":3,
"sDPFree":0,"sPOOLFree":0,"sRecvFree":2,"sCurvRecvFree":0,"TOTALFREEQUANTITY":2,
"nBuyAvgPrice":17000.00,"ISIN":"INE154A01025","nMarketSegmentId":1,"nToken":1660,
"sSeries":"EQ","sSymbol":"ITC","POOLPriority":1,"OtherSegmentTokens":"1:1660,8:500875",
"sShortSellQty":0,"sTotalCollateralQty":0,"sCreditForSale":466.00,"sTotalSecurityCollateral":407.00,
"nPreferredMTMToken":1660,"nPreferredMTMMarketSegmentId":1,"nNSETradedSellQty":3,"nBSETradedSellQty":0
},
{
"sDPAvailable":10,"sPOOLAvailable":5,"TOTALQUANTITY":15,"sDPBlock":10,"sPOOLBlock":1,
"TOTALBLOCKQUANTITY":11,"sDPFree":0,"sPOOLFree":4,"TOTALFREEQUANTITY":4,
"nBuyAvgPrice":700.00,"ISIN":"INE059A01026","nMarketSegmentId":1,"nToken":694,
"sSeries":"EQ","sSymbol":"CIPLA","POOLPriority":1,"OtherSegmentTokens":"1:694,8:500087",
"sTotalCollateralQty":10,"sTotalSecurityCollateral":10395.00
}
]
}